package com.cos.shop.dao;

import com.cos.shop.common.ResponseResult;
import com.cos.shop.entity.Address;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: COS
 * @time: 2023/5/11 10:11
 * @description:
 */
public interface AddressDao {
    List<Address> getAll(int uid) throws SQLException;

    int delete(int id) throws SQLException;

    int insertAddress(Address a) throws SQLException;

    int updateAddress(Address a) throws SQLException;

    int setUserAddressNotDefault(int uid) throws SQLException;

    int setUserAddressDefault(int aid) throws SQLException;
}
